package com.xiaotao.mapper;

import com.xiaotao.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    List<User> queryAll();
    User queryById(@Param("id") Integer id);
    Integer add(User user);
    Integer update(User user);
    Integer delete(@Param("id") Integer id);
    User queryByUsername(String username);
}

